package cn.yuanqiao.auth.util;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName: TokenParamUtil
 * @Description: 类的描述
 * @author: lihuahua
 * @date: 2023/11/20 14:49
 * @Blog: huahuacoco.top
 */
@Component
@ConfigurationProperties(prefix = "singlelogin")
public class TokenParamUtil {


    private static boolean singleSignOn;

    private static String clientId;

    private static String clientSecret;

    private static String OAuthPath;


    private static String redirectPath;

    private static String redirectPathPhone;


    private static boolean soloTenant;


    private static String defaultTenant;


    private static String systemCode;


    private static String integrationKey;


    private static String identityManagePath;

    private static String consumerCode;

    //农发OA对接配置
    private static String OAPath;
    private static String OAUname;
    private static String OAPwd;
    private static String registerCode;

    public static boolean isIsAgentCompressedFiles() {
        return isAgentCompressedFiles;
    }

    public static void setIsAgentCompressedFiles(boolean isAgentCompressedFiles) {
        TokenParamUtil.isAgentCompressedFiles = isAgentCompressedFiles;
    }

    //文件类型转换校验
    private static boolean isAgentCompressedFiles;

    public static String getRegisterCode() {
        return registerCode;
    }

    public  void setRegisterCode(String registerCode) {
        TokenParamUtil.registerCode = registerCode;
    }

    public static String getConsumerCode() {
        return consumerCode;
    }

    public void setConsumerCode(String consumerCode) {
        TokenParamUtil.consumerCode = consumerCode;
    }

    public static boolean isSingleSignOn() {
        return singleSignOn;
    }


    public void setSingleSignOn(boolean singleSignOn) {
        TokenParamUtil.singleSignOn = singleSignOn;
    }

    public static String getRedirectPathPhone() {
        return redirectPathPhone;
    }

    public void setRedirectPathPhone(String redirectPathPhone) {
        TokenParamUtil.redirectPathPhone = redirectPathPhone;
    }

    public static String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        TokenParamUtil.clientId = clientId;
    }

    public static String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        TokenParamUtil.clientSecret = clientSecret;
    }

    public static String getOAuthPath() {
        return OAuthPath;
    }

    public void setOAuthPath(String OAuthPath) {
        TokenParamUtil.OAuthPath = OAuthPath;
    }

    public static String getRedirectPath() {
        return redirectPath;
    }

    public void setRedirectPath(String redirectPath) {
        TokenParamUtil.redirectPath = redirectPath;
    }

    public static boolean isSoloTenant() {
        return soloTenant;
    }

    public void setSoloTenant(boolean soloTenant) {
        TokenParamUtil.soloTenant = soloTenant;
    }

    public static String getDefaultTenant() {
        return defaultTenant;
    }

    public void setDefaultTenant(String defaultTenant) {
        TokenParamUtil.defaultTenant = defaultTenant;
    }

    public static String getSystemCode() {
        return systemCode;
    }

    public void setSystemCode(String systemCode) {
        TokenParamUtil.systemCode = systemCode;
    }

    public static String getIntegrationKey() {
        return integrationKey;
    }

    public void setIntegrationKey(String integrationKey) {
        TokenParamUtil.integrationKey = integrationKey;
    }

    public static String getIdentityManagePath() {
        return identityManagePath;
    }

    public void setIdentityManagePath(String identityManagePath) {
        TokenParamUtil.identityManagePath = identityManagePath;
    }
    public static String getOAPath() {
        return OAPath;
    }

    public void setOAPath(String OAPath) {
        TokenParamUtil.OAPath = OAPath;
    }

    public static String getOAUname() {
        return OAUname;
    }

    public  void setOAUname(String OAUname) {
        TokenParamUtil.OAUname = OAUname;
    }

    public static String getOAPwd() {
        return OAPwd;
    }

    public void setOAPwd(String OAPwd) {
        TokenParamUtil.OAPwd = OAPwd;
    }


}
